//
//  helpUser.m
//  spotrs
//
//  Created by xu on 16/5/12.
//  Copyright © 2016年 TZ. All rights reserved.
//

#import "helpUser.h"

@implementation helpUser
static  helpUser* _instance = nil;
+ (helpUser*)sharedInstance {
    @synchronized(self) {
        if(_instance==nil) {
            _instance=[[helpUser alloc] init];
        }
    }
    
    return _instance;
}
-(UILabel*)creatLineLabel:(UIColor*)color frem:(CGRect)frem
{
    UILabel *line = [[UILabel alloc] initWithFrame:frem];
    [line setBackgroundColor:color];
    return line;
}
-(NSString *)getUserName
{
    _defaul = [NSUserDefaults standardUserDefaults];
    _userName = [_defaul objectForKey:@"userName"];
    return _userName;
}
-(void)memoryUserName
{
   _defaul = [NSUserDefaults standardUserDefaults];
   [_defaul setObject:_userName forKey:@"userName"];
}

@end
